<!--
 * @Author: 'yangyuhang1203' '2621131059@qq.com'
 * @Date: 2025-09-09 10:06:54
 * @LastEditors: 'yangyuhang1203' '2621131059@qq.com'
 * @LastEditTime: 2025-09-09 10:13:33
 * @FilePath: \企业级\前端\js\js运算符.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js运算符</title>
</head>
<body>
    <script>
        var a = 1;
        var b = "1";
        var c = true;
        console.log(a == b); //true 只比较值
        console.log(a === b); //false 类型不一样
        console.log(a == c); //true java中true为1
        console.log(b == c); //true
    </script>    
</body>
</html>